<?php

namespace Trawind\Remotes\Repositories\Product\Item;

use Trawind\Remotes\BaseRepository;
use Trawind\Basics\Enums\ServiceDomain;
use Trawind\Remotes\Contracts\Repositories\Product\Item\VariantValueRepository;

/**
 * Class VariantValueRepositoryEloquent.
 *
 * @package namespace Trawind\Remotes\Repositories\Product\Item;
 */
class VariantValueRepositoryEloquent extends BaseRepository implements VariantValueRepository
{

    public $baseRoute='/item/variant-values';

    /**
     * VariantsRepositoryEloquent constructor.
     */
    public function __construct()
    {
        $this->domain = ServiceDomain::PRODUCT_DOMAIN();
    }


    /**
     * Retrieve all data of repository
     *
     * @param array $columns
     *
     * @return mixed
     */
    public function all($columns = ['*'])
    {
        return $this->setUrl($this->baseRoute)->result();
    }



    /**
     * Find data by id
     *
     * @param       $id
     * @param array $columns
     *
     * @return mixed
     */
    public function find($id, $columns = ['*'])
    {
        return $this->setUrl($this->baseRoute.'/'.$id)->result();
    }

    public function create(array $attributes)
    {
        // TODO: Implement create() method.
    }

    public function update(array $attributes, $id)
    {
        // TODO: Implement update() method.
    }
}
